<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -->
        <title></title>
    </head>
    <body>
        <?php
          $bMail = false;
          $bPDF = true;
          $bSession = false;
          $bValidation= false;

          require_once('../config.inc.php');


          /**
           * //Testing E-Mail
           *
          **/
          if($bMail){       
            include_once 'classes/mail.php';
            $Mail = new sendMail();
            $Mail->fuSending();

            $Mail = null;
          }


          /**
           * //Testing PDF
           *
          **/
          if($bPDF){        
            include_once '../classes/pdf.php';
            $pdf = new createPDF();
            $pdf->fuCreatePDF();
            
            $pdf = null;
          }


          /**
           * //Testing Session XML
           *
          **/
          if($bSession){
            session_start();
            echo session_id().'<br>';
            $_SESSION['NAME']='Behm';
            $_SESSION['VORNAME']='Andreas';
            //echo $_SESSION['NAME'].' , '.$_SESSION['VORNAME'];
            foreach ($_SESSION as $key => $val) {
              echo $key.' - ';
            }
            foreach ($_SESSION as $data => $val){
              echo $val;
            }
            session_destroy();
          }

          
          /**
           * //Testing Validation
           *
          **/
          if($bValidation){
            require_once 'classes/validation.php';
            $vali = new vali();
            $vali->fuVali();


            /*
            $validator = new Zend_Validate_StringLength(8);
 
            $validator->setMessage(
                                    'Der String \'%value%\' ist zu kurz; er muss mindestens %min% ' .
                                    'Zeichen sein',
                                    Zend_Validate_StringLength::TOO_SHORT);
 
            if (!$validator->isValid('word')) {
                $messages = $validator->getMessages();
                echo $messages[0];

                // "Der String 'word' ist zu kurz; er muss mindestens 8 Zeichen sein"
            }
             */
            /*
            $email='abehm86@googlemail.com';
            $validator = new Zend_Validate_EmailAddress();

            if ($validator->isValid($email)) {
              //
              // E-Mail scheint gültig zu sein
              //
            } else {
              //
              // E-Mail ist ungültig; drucke die Gründe
              //
              foreach ($validator->getMessages() as $messageId => $message) {
                echo "Validation failure '$messageId': $message\n";
              }
            }

             */
          }
          ?>
    </body>
</html>
